<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>骆米</title>
    
</head>
<body>
  
</body>
</html>
<script>
function getParams() {
    var search = location.search
    search = search.replace('?', '')
    var arr = search.split('&')
    var obj = {}
    for (var item of arr) {
        var list = item.split('=')
        obj[list[0]] = list[1]
    }
  
    return obj
}

var code = getParams().code
if (code) {
    var href = location.href
    href = href.replace('pre.html', 'signUp.html')
    href = href.replace('t-busi', 's-busi')
    location.href = href
} else {
    var url = location.origin + location.pathname
    location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8a1dedca1e981275&redirect_uri='+url+'&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect'

}

</script>